home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d7 / fac110.arc / FAC.DOC < prev    next >
Text File  |  1990-09-20  |  36KB  |  761 lines

  1.  
  2.  
  3.  
  4.  
  5.                       Find Area Code (FAC), Version 1.1
  6.  
  7.                              Copyright (c) 1990
  8.                              All Rights Reserved
  9.  
  10.  
  11.                      Developed and Marketed as Shareware
  12.                                      by
  13.                               Michael K. Molloy
  14.                           8531 East Dry Creek Place
  15.                              Englewood, CO  80112
  16.                            CompuServe: 72737, 3237
  17.  
  18.  
  19.  
  20.  
  21.  
  22.                          F I N D   A R E A   C O D E
  23.  
  24.                           D O C U M E N T A T I O N
  25.  
  26.  
  27.     Table of Contents
  28.  
  29.       o Introduction
  30.       o Files Included
  31.       o Installation
  32.       o Using FAC from the MSDOS Command Line
  33.       o Using FAC as a Popup TSR Program
  34.       o Advanced Options and Configuration
  35.       o Error Conditions
  36.       o Technical/Compatibility Notes
  37.       o How to Reach the Author
  38.       o History of Changes
  39.       o Alternative Uses
  40.       o Final Remarks
  41.       o Quick Reference List of FAC Options
  42.  
  43.  
  44.     Introduction
  45.     ------------
  46.  
  47.     Find Area Code (FAC) is an MSDOS utility which can quickly locate U.S.
  48.     and international telephone area codes.  FAC performs its search using
  49.     any part of an area code, city, state, or country and shows matches
  50.     almost instantly.  FAC uses an ASCII data file (FAC.DAT) which you can
  51.     change, update, or add to whenever you like.  There are about 120 U.S.
  52.     area codes in the database, and about 150 foreign countries with over
  53.     450 city codes.
  54.  
  55.     You can run FAC from the MSDOS command line or you can make it memory
  56.     resident (also known as a popup or Terminate and Stay Resident [TSR]
  57.     program).  When you install FAC as a memory resident program, you can
  58.     choose between a small (7K of RAM) swapping version with a short (less
  59.     than 2 second) delay while it swaps into memory from disk, or you can
  60.     have an instantly available popup which requires about 70K of RAM.
  61.  
  62.     The program automatically senses and supports all of the 25/43/50 line
  63.     modes used in most CGA/EGA/VGA video cards and pops up in the current
  64.     mode, using the screen appropriately for that mode.
  65.  
  66.     FAC is distributed on a "shareware" basis.  If you try the program, like
  67.     it, and continue to use it, I ask that you send me $10 to make it
  68.     possible to improve the program.  The program is not "crippled" in
  69.     anyway (I trust you'll find the program useful and that you'll want to
  70.     register).
  71.  
  72.     Please feel free to distribute the program to anyone you wish.  Please
  73.     don't distribute:  1) modified versions; and 2) registered versions.
  74.  
  75.     When you register, you'll receive a disk with a registered copy of the
  76.     latest version of the program.  Your registration is valid for as long
  77.     as I continue to upgrade the program.  Once registered, you are entitled
  78.     to the latest version anytime for only the cost of sending the disk. You
  79.     can either send me a SASE floppy mailer with your floppy, or just send
  80.     me $3.50 and I'll furnish the floppy and mailer.
  81.  
  82.     If you send $20, I'll send you the Turbo Pascal 5.5 source code (less
  83.     code licensed only to me).  I'll include the public domain RLINE (public
  84.     domain) and TP String (shareware) files, as well (see Technical/
  85.     Compatibility Notes, below).  I can't include any of TurboPower
  86.     Software's Object Professional units or source code.  You should still
  87.     be able to figure out what's going on and whether you want to get Object
  88.     Professional (you will!).  Obviously, if you purchase the source code
  89.     it's only for your personal use (you can't distribute it).  Contact me
  90.     for reasonable site license and quantity discount information.
  91.  
  92.  
  93.     Files Included
  94.     --------------
  95.  
  96.     This package, distributed as FAC110.ZIP, has the following files (the "
  97.     ~ " means the file MUST be present to run the program):
  98.  
  99.             README.1ST -  Description of program and summary of features
  100.  
  101.               FAC.EXE  ~  The executable program
  102.  
  103.               FAC.DAT  ~  The Area Code database, an ASCII file which
  104.                           you can modify in any way you like.
  105.  
  106.               FAC.DOC  -  Documentation (you're reading this now)
  107.  
  108.  
  109.     Installation
  110.     ------------
  111.  
  112.     You can put Find Area Code's files in any directory.  The FAC.EXE and
  113.     FAC.DAT files can be anywhere on the disk as long as you set a path to
  114.     them with the MSDOS PATH statement.  Note that FAC.DAT need not be in
  115.     the same directory as FAC.EXE as long they are both on the PATH.
  116.  
  117.     You need about 90K of disk space and 64K RAM to run the program from
  118.     the MSDOS prompt (non-TSR mode).  To use the program as a swapping TSR
  119.     you must have about 220K of free disk space (including space required
  120.     for swap files).  A hard disk is recommended, but isn't required if you
  121.     don't mind the program running quite a bit more slowly.
  122.  
  123.     Using FAC from the MSDOS Command Line
  124.     -------------------------------------
  125.  
  126.     First, you must know how to invoke FAC from the MSDOS command line
  127.     prompt.  Type "FAC" then ENTER and you'll see a complete list of options
  128.     you have for using FAC.  Don't be alarmed at all the options. FAC is
  129.     very simple to use and really requires only one thing--a string to
  130.     search for.  All the options are for more advanced use.  FAC is designed
  131.     to be very easy to use without reference to documentation or help
  132.     screens.
  133.  
  134.     FAC will search for area code information only if you enter the search
  135.     string as an MSDOS parameter right after the program name.  For example,
  136.     suppose wanted to know the area code for Boulder, Colorado.
  137.  
  138.     At the MSDOS prompt, type: "FAC boulder" (without the quotes, of course)
  139.     then press ENTER.  The program will start, a window will popup on the
  140.     screen, and the program automatically begins its search.  Almost
  141.     instantly, you'll see information about the area code for Boulder.  The
  142.     first column in the display window has the 3 digit area code 303
  143.     (international area codes aren't necessarily 3 digits).  The next column
  144.     shows the 2 character postal abbreviation for Colorado, CO.  The third
  145.     column shows the full name of the state.  The last column shows the
  146.     major cities in this particular area code.  Notice Boulder appears in
  147.     this list.  When you've finished with the program, just press Esc and
  148.     you'll exit back to MSDOS.
  149.  
  150.     Let's take another example.  Suppose someone leaves you a note to call
  151.     someone in a 309 area code.  You don't recognize this area code and it's
  152.     inconvenient to look up the area code in the phone book. You type "FAC
  153.     309" then press ENTER.  Almost instantly, you learn that the 309 area
  154.     code includes Peoria, Molina, and Rock Island, Illinois.
  155.  
  156.     Searching for an international area code is almost exactly the same.
  157.     Just type in a city name, say Paris.  The program will display the
  158.     country code in the first column, the country name in the next column
  159.     (there is no postal abbreviation for most foreign countries), and a list
  160.     of major cities and city codes for that country in the last column.
  161.     Each city code is listed in parentheses immediately after the city name.
  162.     So you know the country code for France is 33 and the city code for
  163.     Paris is 1.
  164.  
  165.     You get the idea.  By typing "FAC X" where X is any alphanumeric string,
  166.     you can quickly search the area code database.  You can search by area
  167.     code, state postal abbreviation, state name, country, city, or any
  168.     portion of thereof.  The search string can be in any combination of
  169.     upper or lower case letters and numbers.
  170.  
  171.     NOTE: If you use only two characters, the program assumes you want to
  172.     search for two-letter state postal abbreviations which appear only in
  173.     the first 7 characters of each line.
  174.  
  175.     Once you're inside the program, you can search for other area code
  176.     information by entering another search string at the prompt.  To edit
  177.     your entry, press Backspace, or press Esc to erase your entire entry.
  178.     If you press Esc once more, you'll exit the program.  You can make any
  179.     number of searches before exiting the program.  Remember, just press Esc
  180.     to exit the program (Ctrl-C or Ctrl-Break will also exit the program).
  181.  
  182.     Sometimes, your search string will find more information than can be
  183.     displayed in the window.  If the screen fills up with information, the
  184.     program will pause and prompt you to press the Esc key to stop
  185.     displaying information from the current search, or press any other key
  186.     to continue displaying information.  If you press Esc to stop displaying
  187.     information, you'll be returned to FAC's prompt. Pressing Esc once more
  188.     will exit the program.
  189.  
  190.     Once you've experimented with FAC, you may notice that sometimes it pops
  191.     up in the upper half of your screen and sometimes it pops up in the
  192.     lower half.  Why?  FAC looks at where the cursor is positioned and
  193.     brings up the FAC window in the opposite half of the screen you're
  194.     working in.  This insures the program doesn't obscure something you may
  195.     need to see while you're using the program.
  196.  
  197.  
  198.     Using FAC as a Popup TSR Program
  199.     --------------------------------
  200.  
  201.     More often than not, when you're at your computer and you need area code
  202.     information, you're in the middle of doing something else.  To use FAC
  203.     as described above, you must save your work, exit the program you're
  204.     using, then invoke FAC.  FAC would tell you what you need to know, then
  205.     you would have to restart your original program, go back to where you
  206.     left off, and try to go back to work.
  207.  
  208.     It would be much more convenient if you could simply have FAC
  209.     immediately "popup" over whatever you're doing, give you the information
  210.     you need, then go away, leaving you exactly where you were.  Not only
  211.     would it be more convenient, it would save a lot of your valuable time.
  212.  
  213.     FAC can do this.  All you have to do is tell FAC to install itself as a
  214.     "popup" or memory resident program.
  215.  
  216.     You'll also see this type of program called a TSR, which stands for
  217.     Terminate & Stay Resident.  A TSR is installed or loaded once from the
  218.     MSDOS command line.  It stays in memory even while you're doing other
  219.     things, and watches to see when you press a special key or key sequence
  220.     to activate it.  This special key sequence is known as a "hotkey".  When
  221.     you press the hotkey, the program starts.
  222.  
  223.     Here's how to install FAC as a memory resident, popup program.  At the
  224.     MSDOS prompt, type: "FAC /I" (without the quotes) then press ENTER.  FAC
  225.     will then install itself in memory as a TSR.  When it has successfully
  226.     installed itself, it will describe how it has been installed.  In this
  227.     case, you will use FAC's defaults.
  228.  
  229.     Once you've installed FAC as described above, you can press FAC's hotkey
  230.     to pop it up wherever you are.  FAC's hotkey is <Alt><LeftShift><F>.  To
  231.     press this key sequence, press and hold the "Alt" key, press and hold
  232.     the Shift key on the left side of your keyboard, then press the F key.
  233.     As soon as all three keys are pressed, FAC will "wakeup" and activate
  234.     itself.
  235.  
  236.     FAC will draw its window on the screen right over the top of whatever
  237.     you're doing.  Don't worry.  When FAC is done, it will return the
  238.     screen to exactly the way it found it.
  239.  
  240.     When you invoke the TSR version of FAC as installed above, it works
  241.     somewhat differently than it does when you start it from the MSDOS
  242.     prompt.  Recall that when you run the program from the MSDOS prompt, you
  243.     must enter a parameter (search string) so FAC knows what to search for.
  244.     When FAC operates as a TSR, it can read the text string (state, area
  245.     code, city, etc.) you want to search for right off the screen by looking
  246.     at the word "under" or to the left of where you have the cursor
  247.     positioned!  (You can turn off reading the search string from the screen
  248.     by using the /G switch.  See Advanced Options and Configuration.)  If
  249.     the cursor isn't in a word or just to the right of a word, no search
  250.     string will be passed to FAC, but it will still pop up.
  251.  
  252.     So, what happens?  You press the hotkey, FAC pops up over your work,
  253.     reads the text "under" the cursor, and immediately begins its search.
  254.     After it finds and displays a match, it prompts you for another search.
  255.     Now the program operates exactly the way it does when used from the
  256.     MSDOS prompt.
  257.  
  258.     When you want to exit, press Esc, and FAC will collapse its window,
  259.     and restore your screen and cursor location exactly the way it
  260.     appeared when you pressed the hotkey.
  261.  
  262.     You may have noticed that when you pressed the hotkey, a reverse
  263.     video message appeared on the bottom of the screen which said
  264.     "Swapping in..."   Similarly, when you pressed Esc to exit the
  265.     program, "Swapping out..." appeared.  These messages tell you the
  266.     program is swapping into and out of memory (RAM) from disk.  Why
  267.     does the program do this?
  268.  
  269.     Swapping TSRs are relatively new.  When they install, they take a
  270.     snapshot of the complete program and write it out to a "swap file"
  271.     on disk, then free up all but a tiny portion of memory (which holds
  272.     the portion of the program which watches for the hotkey and then
  273.     does the actual swapping to/from disk).  When swapping TSRs pop up
  274.     over your existing program, they may also have to take a snapshot of
  275.     your application and write it to disk before it swaps the rest of
  276.     the TSR in.  So why do we want to put up with all this swapping in
  277.     and out?  Doesn't this cause delays?  Why can't the program just pop
  278.     up instantly like my other TSRs?
  279.  
  280.     Well, like everything else in the world, there are tradeoffs.  In
  281.     order to run full-featured, advanced programs, it takes memory
  282.     (RAM).  The more full-featured the program, the more memory it
  283.     takes.  Unfortunately, memory is a limited resource and
  284.     "full-featured" often translates to "memory-hungry."  FAC has many
  285.     features but still only requires about 70K of RAM to run.  This
  286.     isn't a problem if FAC is the only program you want to run, but
  287.     it's a big problem if you want FAC to be loaded as a TSR at the same
  288.     time you're running other (full-featured) programs.
  289.  
  290.     When FAC is installed as a swapping TSR, it only requires about 7K
  291.     of RAM to watch for you to press the hotkey and then swap what
  292.     you're doing out and swap itself in.  With all the other TSRs you
  293.     use and the other programs you run, you need all the help you can
  294.     get.  The TSR swapping technology FAC uses helps you optimize
  295.     all the memory you have with very little impact on how you use the
  296.     program.  As computers continue to become faster and more powerful,
  297.     you'll see more and more swapping TSRs.
  298.  
  299.     The time you spend waiting on swapping is relatively trivial compared to
  300.     the time it takes to leave your application, then return.  On XT class
  301.     computers, swapping delays are only about 1 or 2 seconds.  On 286 class
  302.     computers, delays are usually about 1 second.  On 386 and 486 class
  303.     computers, delays are usually less than .5 seconds.  Of course swapping
  304.     delays can be affected by a wide range of hardware and software
  305.     variables.  Fast hard disks with 1:1 interleaves and high data transfer
  306.     rates make a huge difference, even when used on an 808X CPU.  If you're
  307.     able to use a RAM Disk, or disk caching (hardware or software) you'll
  308.     find swapping delays to be negligible or even unmeasurable.  See the
  309.     section below on Advanced Options and Configuration for information on
  310.     how to reduce swapping delays.
  311.  
  312.     The bottom line is, I think the tradeoffs (disk swapping delays) are
  313.     completely acceptable given the savings in memory.  I think you'll think
  314.     so, too!  (Note:  future versions of FAC should allow swapping to either
  315.     extended or expanded memory.)
  316.  
  317.  
  318.     Advanced Options and Configuration
  319.     ----------------------------------
  320.  
  321.     FAC has several different options or "switches" you can use to customize
  322.     the way FAC works when you invoke the program or install it as a popup.
  323.     Most of FAC's command line switches relate to its installation as a TSR.
  324.  
  325.     Again, FAC is designed to be very easy to use, and you may be
  326.     perfectly happy with FAC's performance when you use its default
  327.     options.
  328.  
  329.     Switch options are always preceded by either a "/" or a "-" and can be
  330.     upper or lower case letters.
  331.  
  332.     Remember, to see a complete list of all FAC's options, just type
  333.     "FAC" at the MSDOS prompt and press ENTER.
  334.  
  335.     The "/X" Switch
  336.     ---------------
  337.  
  338.     Used for both non-TSR and TSR.
  339.  
  340.     This option or program "switch" applies to FAC when run from the MSDOS
  341.     prompt (non-memory resident mode) or when you install it as a popup.  If
  342.     you use the "/X" switch, FAC will disable its use of exploding windows.
  343.     Exploding windows don't change the way the program searches or the way
  344.     you use it, it just changes how the program looks when it starts and
  345.     finishes.
  346.  
  347.     If you want to disable exploding windows when you run the program
  348.     from the MSDOS command line (non-TSR), just put the /X switch after
  349.     your search parameter.
  350.  
  351.     Example:  "FAC boulder /x"
  352.  
  353.     When the program starts, the window would appear instantly on the
  354.     screen instead of being exploded onto the screen.
  355.  
  356.  
  357.     The "/I" Switch
  358.     ---------------
  359.  
  360.     Used to install FAC as a swapping or non-swapping TSR.
  361.  
  362.     You've already seen that the /I switch is used to install FAC as a
  363.     memory resident program.  If you use /I by itself, the program will
  364.     install itself using several predefined defaults, all of which can
  365.     be changed by using other switches.
  366.  
  367.     If you use /I alone to install FAC, the following defaults are used:
  368.  
  369.       - Swapping to disk is enabled.
  370.       - Messages which tell you swapping is happening are enabled.
  371.       - The disk and directory path FAC uses for swap files is the same
  372.         directory where FAC found FAC.DAT.
  373.       - Exploding windows are enabled (see the /X switch above).
  374.  
  375.     After you use the /I switch to install FAC, you will see a status
  376.     message which describes the state of each of the above defaults.
  377.  
  378.     Note that if FAC is already installed, you won't be able to install
  379.     a second copy.  If you try to install it again, you'll get an error
  380.     message and the installation will abort.
  381.  
  382.     If you don't have enough disk space for the swap files, you'll get
  383.     an error message and FAC won't install as a TSR.
  384.  
  385.     After you install FAC as a TSR, don't move or rename the FAC.DAT
  386.     file or you will probably get dumped from the TSR when you try to
  387.     use it.
  388.  
  389.     Please note that you can't pop up FAC when you're using a program which
  390.     is currently in graphics mode.  If you try to pop it up, you'll hear a
  391.     beep and nothing else will happen.
  392.  
  393.     Also, be aware that since FAC swaps the currently running program out so
  394.     it can become active, you could have a problem with some programs,
  395.     especially communications programs.  In this case, you should run the
  396.     program in non-swapping mode (/N).  It still isn't advisable to pop up
  397.     any TSR when a communications program if data is coming in or going out.
  398.  
  399.     FAC should work fine with most other TSRs.  The only problem you may
  400.     encounter is when you don't load FAC last among other TSRs.  This won't
  401.     hurt anything, but you may not have access to your other TSRs when FAC
  402.     is swapped in (since it may have swapped the other TSR(s) out of RAM).
  403.     If FAC isn't in use, or it's been installed as a non-swapping TSR, you
  404.     shouldn't have a problem with TSRs loaded after it.
  405.  
  406.     Don't attempt to install FAC while you're "shelled out" of
  407.     other programs. For example, you can drop temporarily to MSDOS from
  408.     many programs, but you should never try to install FAC while you're
  409.     doing so.  This also applies to many menuing programs like
  410.     PowerMenus and AutoMenu. These programs can leave a portion of
  411.     themselves in memory.  You should never try to install FAC as a TSR
  412.     from any menu program. Completely exit from any other program before
  413.     attempting to install FAC as a TSR.  You may run FAC from the MSDOS
  414.     prompt (non-TSR) while shelled out of another program if you wish.
  415.  
  416.     Example:  "FAC /I"
  417.  
  418.     This would install FAC as a TSR with the defaults described above.
  419.  
  420.     What follows is a more detailed discussion of these defaults, how
  421.     you can change them, and why you might want to.
  422.  
  423.  
  424.     The "/N" Switch
  425.     ---------------
  426.  
  427.     Used with /I to install FAC as a non-swapping TSR.
  428.  
  429.     The /N switch says, "don't use the swapping TSR mode; keep the
  430.     entire TSR in RAM."  This will give you instant access to FAC when you
  431.     press the hotkey, but requires about 70K of RAM.  If you have plenty of
  432.     RAM, you need FAC to be available instantly, and you use programs which
  433.     won't miss the memory FAC requires in this mode, use the /N switch.
  434.  
  435.     The default is a swapping TSR.
  436.  
  437.     Example:  "FAC /I /N"
  438.  
  439.     This would install FAC as a non-swapping TSR.
  440.  
  441.  
  442.     The "/M" Switch
  443.     ---------------
  444.  
  445.     Used with /I when installing FAC as a swapping TSR.
  446.  
  447.     The /M switch says, "don't put the swapping in/out... messages at
  448.     the bottom of the screen when swapping."  The program doesn't work
  449.     any differently, except that you won't see the messages.  If you use a
  450.     RAM disk for swapping, the swapping messages might be an unnecessary
  451.     distraction.
  452.  
  453.     The default is to have swapping messages appear.
  454.  
  455.     Example: "FAC /I /M"
  456.  
  457.     This would install FAC as a swapping TSR, but swapping messages
  458.     would be disabled.
  459.  
  460.  
  461.     The "/P" Switch
  462.     ---------------
  463.  
  464.     Used with /I when installing FAC as a swapping TSR.
  465.  
  466.     The /P switch, when followed by a complete path specification, says,
  467.     "put the swap files in the specified disk/directory."  The main
  468.     reason you would use this switch would be to tell FAC to use a RAM
  469.     disk.  If you have a RAM disk, with at least 150K of space, you
  470.     should use the /P switch to significantly speed up swapping.  If you
  471.     use /P to swap to RAM disk, you may wish to use the /M switch to
  472.     disable the swapping in/out messages.
  473.  
  474.     Whether you use the /P option or not, FAC generates either one or
  475.     two swap files, named FAC-SWP1.$$$ and FAC-SWP2.$$$, each about 70K
  476.     in size, located wherever FAC.DAT was found (unless you specify
  477.     otherwise with the /P switch).  These files are marked with both
  478.     System and Hidden attributes to make it less likely you will
  479.     accidentally delete them.  If they are deleted after FAC is loaded,
  480.     and you try to pop up the program, you'll get an error message and
  481.     have to reboot.  When you successfully unload FAC, the swap files
  482.     are deleted.  If you reboot or turn your machine off, the file(s)
  483.     will remain, but will be written over the next time FAC is loaded as
  484.     a TSR.
  485.  
  486.     The default is to put swap files in the same disk/directory where
  487.     FAC.DAT was found.  If you aren't sure where this is, run FAC with no
  488.     parameters and look at the default determined at run time.
  489.  
  490.     Examples: "FAC /I /Pd:"
  491.               "FAC /I /Pc:\junk
  492.  
  493.  
  494.     The first example would install FAC as a swapping TSR with the swap files
  495.     located on the D: drive.  The second example would use a swap file
  496.     directory called C:\JUNK.
  497.  
  498.  
  499.     The "/G" Switch
  500.     ---------------
  501.  
  502.     When used with /I; don't get search strings from the screen in TSR mode.
  503.  
  504.     The /G switch says, "When you popup FAC, don't read the text to search
  505.     for off the user's screen; just ask for a string."  This switch prevents
  506.     you from grabbing the search string and requires you to enter it
  507.     yourself.
  508.  
  509.     The default is to read the screen for the text to search for.
  510.  
  511.     Example: "FAC /I /G"
  512.  
  513.     This example disables reading the text from the screen when FAC is
  514.     popped up.
  515.  
  516.  
  517.     The "/U" Switch
  518.     ---------------
  519.  
  520.     Attempts to uninstall FAC (in TSR mode) from memory, and delete swap
  521.     files, if they exist.
  522.  
  523.     The /U switch says, "If it is safe to do so, remove FAC from RAM as
  524.     a swapping or non-swapping TSR, free up associated memory, and
  525.     delete any swap files which may have been created."  Use the /U
  526.     switch if you need to uninstall the program.  "If it is safe to do
  527.     so" means just that.  If FAC isn't installed as the last TSR, you
  528.     won't be able to uninstall it.  (You may be able to uninstall FAC by
  529.     using something like the Mark/Release TSRCOM utilities, but even
  530.     then, you must remove FAC and all TSRs loaded after it.  If you plan
  531.     to frequently uninstall FAC you should load it last.  Of course if
  532.     you load FAC last, then you won't be able to unload TSRs loaded before
  533.     it.  Naturally, you can uninstall any TSR by rebooting your machine.
  534.  
  535.  
  536.     Error Conditions
  537.     ----------------
  538.  
  539.     FAC is very friendly and shouldn't give error messages unless
  540.     there's really something you need to fix.  Here are some error
  541.     messages FAC could generate and why you might get them:
  542.  
  543.     - "Error while trying to find/open FAC.DAT"   Make sure FAC.DAT
  544.     exists and that the disk and directory containing FAC.DAT is on your
  545.     MSDOS path.
  546.  
  547.     - "FAC isn't loaded!"  You've tried to uninstall FAC (as a TSR) when
  548.     it wasn't previously loaded.  Use the /I option to install it.
  549.  
  550.     - "Unable to unload FAC.  Probably isn't safe to do so!"  This
  551.     isn't really an error message; it just means that the program can't
  552.     uninstall itself, probably because there's another TSR or program
  553.     loaded after it.  Try rebooting if you have to unload it.
  554.  
  555.     - "XXXX not found."  This, too, isn't really an error message.  You'll
  556.     get this message any time you searched for string and it wasn't
  557.     found.  The string you're searching for may not be in FAC.DAT or you
  558.     may need to check your spelling.
  559.  
  560.     - "FAC is already memory resident!"  You're trying to install FAC
  561.     after it's already been loaded.  Use FAC /U to uninstall it.
  562.  
  563.     - "Unable to go TSR.  Do you have enough swap file disk space on
  564.     X:?"  This message means FAC couldn't go TSR, probably because you
  565.     don't have enough RAM, or you don't have enough disk space for the
  566.     swap files.
  567.  
  568.     - "Couldn't make window!"  There was a memory allocation error when
  569.     FAC tried to draw its window.  You probably don't have enough RAM to
  570.     run FAC.
  571.  
  572.  
  573.     Technical/Compatibility Notes
  574.     -----------------------------
  575.  
  576.     Find Area Code  runs on IBM PC compatibles (clones) using MSDOS 3.X.
  577.     I've not tested the program under MSDOS 4.X.  I'm pretty sure the
  578.     program won't work with DOS 2.X since 2.X handles paths differently.  It
  579.     might work if you're in the same directory as the data file.
  580.  
  581.     One of the reasons the program searches so quickly is RLINE, Don
  582.     Strenczewilk's excellent Turbo Pascal OOP text file handling unit.
  583.     RLINE allows you to define a "file of lines" object.  In addition,
  584.     FAC can search at a rate of over 600 lines per second on an XT with
  585.     a slow hard disk!  Thanks to Don for graciously donating his code to
  586.     the public domain!
  587.  
  588.     Another reason the program is so fast is due to Richard Winkel's TPSTR.
  589.     TPSTR (Ver 1.21) is a Turbo Pascal Unit with about 30 REXX-like string
  590.     procedures and functions, all carefully crafted in assembly language.
  591.     Richard's licensing fee is very reasonable ($10) and you get all the
  592.     Turbo Pascal and assembly source code.  Highly recommended!
  593.  
  594.     The excellent TSR swapping system and windowing comes from Object
  595.     Professional 1.02 from TurboPower Software.  If you do any programming
  596.     in Turbo Pascal 5.5, you owe it to yourself to use Object Pro!
  597.  
  598.     How to Reach the Author
  599.     -----------------------
  600.  
  601.                  Michael K. Molloy
  602.                  8531 East Dry Creek Place
  603.                  Englewood, CO  80112
  604.                  CIS: 72737, 3237
  605.  
  606.     I also frequent the MicroManiac!, Tom Gettys' fantastic Wildcat BBS
  607.     (303-673-9470) in Lafayette, CO.  His board should always have the
  608.     latest version of Find Area Code (and hundreds of other fresh uploads!).
  609.  
  610.     History of Changes
  611.     ------------------
  612.  
  613.       1.0 - Experimental version; not released to general public
  614.       1.1 - Rewritten using Object Pro; major overhaul of program and
  615.             documentation
  616.  
  617.     NOTE: If I get registrations and user support for this program, I'll
  618.     add other valuable features in future versions:
  619.  
  620.            - XMS/EMS swapping support
  621.            - Resizable/Movable window
  622.            - Install/clone program to set user defaults (colors/hotkey/etc.)
  623.            - Soundex string matching (get a match even on misspelling)
  624.            - Multiple data file handling ("subject" databases?)
  625.            - Mouse support?
  626.            - You tell me!!
  627.  
  628.     Alternative Uses
  629.     ----------------
  630.  
  631.     You may thought to yourself as you used FAC, "Hmmm, if I can pop FAC
  632.     up anywhere as a tiny TSR, and if I can change the contents of the
  633.     FAC.DAT file, why can't I put my own personal information into it
  634.     and quickly and conveniently search for it when I need it?"  You can,
  635.     and I hope you will.
  636.  
  637.     I think the ease of modifying FAC's database is a very valuable feature.
  638.     In fact, one of the reasons I decided to write "yet another area code
  639.     finder" was the frustration I had with the fact you couldn't modify,
  640.     correct, update, or add to some of the other area code program data
  641.     files.
  642.  
  643.     My own personal use of FAC goes far beyond just using it to hunt down
  644.     area codes.  Here's what I do.
  645.  
  646.     I have (you probably do, too if you're any kind of computer nut) a
  647.     database of friends and relatives with which I maintain a quick
  648.     reference phone list.  Periodically, I use my database program to
  649.     generate a report which I print to disk.  The report looks something
  650.     like this:
  651.  
  652.     John Doe            555-555-5555  1234 Anywhere St., Anyplace, CO  12345
  653.     Joe's Software Shop     555-1234  (open 24 hours)
  654.     Jay's Hardware Emporium 555-9876  (Closes at 6pm)
  655.     Jim Smith               555-0000  (Keep trying; has teenagers on phone)
  656.        .
  657.        .
  658.        .
  659.     (you get the idea)
  660.  
  661.     I use an editor to paste the ASCII information into the front of my
  662.     FAC.DAT file, and presto! I have a 7K popup database of our family and
  663.     friends.  I put the information at the front only to improve search
  664.     times for the information I need most frequently; it can be anywhere, in
  665.     any format, in any order since every character of the entire FAC.DAT
  666.     file is searched every time (except when your search string is only 2
  667.     characters; that tells the program you're searching for a state postal
  668.     abbreviation in the first 7 characters; be careful with that!).
  669.  
  670.     Obviously, if you change the data file to reflect your own data, it
  671.     could be used for almost anything.  Just remember, the program is
  672.     line-oriented--all the information for one "record" must be on the same
  673.     line.  Each line in the data file is limited to 119 characters.  If
  674.     lines are longer than 119 characters, they'll be truncated when they are
  675.     displayed.  The program will automatically wordwrap lines of up to 119
  676.     characters when the "record" is displayed.
  677.  
  678.     I guess the way I use FAC makes it kind of a "poor man's personal
  679.     information manager (PIM)".  I've found that FAC is far superior to
  680.     LIST and other text file handling programs when it comes to ease of
  681.     use and search speed.
  682.  
  683.     FAC certainly isn't offered as any kind of free format database
  684.     package, but I think it bridges an important gap between a
  685.     full-blown database application and a tattered piece of paper taped
  686.     above your computer desk.
  687.  
  688.     I think this capability gives FAC significant "value added."  I hope you
  689.     agree and you see another reason to support the program financially with
  690.     your registration.
  691.  
  692.     Use your imagination!  If you come up with radical or useful new
  693.     applications for Find Area Code "engine", please let me know.
  694.  
  695.     Final Remarks
  696.     -------------
  697.  
  698.     Many thanks to my wife, Bobbea, for her friendship, love, and
  699.     support in every aspect of my life.
  700.  
  701.     Thanks to Tom Gettys for his patient and valuable beta test feedback
  702.     and for having the best BBS in Colorado!
  703.  
  704.     I've made every effort to provide the correct area codes and foreign
  705.     country city codes.  If you find errors or additions, please send
  706.     them to me on CompuServe.
  707.  
  708.     If FAC doesn't do what you think it should, or you'd like for it to
  709.     do something else, I would be happy to develop a customized version
  710.     of the program for anyone who wants one (for a reasonable fee).
  711.  
  712.     I'd appreciate bug reports, new feature requests, comments,
  713.     performance problems, constructive criticism, suggestions,
  714.     additions, and/or corrections regarding Find Area Code.
  715.  
  716.     Enjoy!
  717.  
  718.            Mike
  719.  
  720.  
  721.     ------------------------------------------------------------------------
  722.  
  723.                        Quick Reference List of FAC Options
  724.                        -----------------------------------
  725.  
  726.  
  727.           FAC                 (Shows brief help information)
  728.  
  729.           FAC <String>        (Searches for String [can be any part of or
  730.                                all of a City, State, Country, or Area Code]
  731.                                If String is 2 characters then a search on
  732.                                U.S states only is assumed) Not a TSR
  733.  
  734.           FAC /I              (Loads popup/TSR with defaults:
  735.                                - Swapping on
  736.                                - Swapping messages on
  737.                                - Swap file path = same path FAC.DAT found on
  738.                                - Exploding windows on
  739.                                - Read search string from screen
  740.  
  741.           FAC /I /N           (Loads popup; no swapping [instant popup mode
  742.                                but requires 70K RAM])
  743.  
  744.           FAC /I /M           (Loads popup; suppresses swapping messages)
  745.  
  746.           FAC /I /Pc:\temp    (Loads popup: path for swap files = c:\temp
  747.                                Specify RAM disk if available/possible)
  748.  
  749.           FAC /I /G            (Don't read text from screen on popup [When
  750.                                used with other parameters])
  751.  
  752.           FAC /X              (Don't use exploding windows
  753.                                [When used with other parameters])
  754.  
  755.           FAC /U              (Unloads popup from memory, if possible;
  756.                                deletes swap files)
  757.  
  758.     ------------------------------------------------------------------------
  759.  
  760.     *** End of FAC.DOC ***
  761.